package com.woniu.platform.service;

import com.woniu.customer.entity.Customer;
import com.woniu.customer.entity.vo.CustomerVO;
import com.woniu.platform.entity.PlatformCustomerAuditRecord;
import com.woniu.platform.entity.vo.PlatformCustomerAuditRecordVO;
import com.woniu.util.utils.HttpResult;
import org.springframework.security.authentication.CachingUserDetailsService;

import java.math.BigDecimal;

public interface PlatformCustomerService {

    /**
     * 通过属性查询待审核用户
     * @param customerVO
     * @return
     */
    HttpResult<?> selectCustomerShouldAudit(CustomerVO customerVO);

    /**
     * 通过属性查找客户
     * @param customerVO
     * @return
     */
    HttpResult<?> selectCustomer(CustomerVO customerVO);

    /**
     * 审核用户
     * 生成审核记录
     * @param result
     * @param customerId
     * @return
     */
    HttpResult<?> customerAudit(Integer result, String customerId);

    /**
     * 通过属性查找用户审核记录
     * @param platformCustomerAuditRecordVO
     * @return
     */
    HttpResult<?> selectCustomerAuditRecord(PlatformCustomerAuditRecordVO platformCustomerAuditRecordVO);
}
